package improve;

/**
 * @Author Big_white
 * @Date 2021/11/26
 */
public class WildDuck extends Duck{
    //构造器 传入对象
    public WildDuck(){
        flyBehavior=new GoodFlyBehavior();
    }
    @Override
    public void display() {
        System.out.println("这是野鸭");
    }
}
